package com.cjgl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjgl.model.entity.TblUsers;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhangyuwu
 * @description 针对表【tbl_users(用户信息表)】的数据库操作Service
 * @createDate 2023-05-24 13:49:32
 */
public interface TblUsersService extends IService<TblUsers> {
	/**
	 * 用户登录
	 *
	 * @param userNo
	 * @param userPassword
	 * @param request
	 * @return
	 */
	Boolean userLogin(String userNo, String userPassword, HttpServletRequest request);

	/**
	 * 获取当前登录用户
	 *
	 * @param request
	 * @return
	 */
	TblUsers getLoginUser(HttpServletRequest request);

	/**
	 * 修改用户密码（可以通用）
	 *
	 * @param userNo
	 * @param userPassword
	 * @return
	 */
	int changeUserPassword(String userNo, String userPassword);
}
